package com.yidu.hbats.dao;

import com.yidu.hbats.model.AtsEmpExpert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsEmpExpertMapper {
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer expertId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsEmpExpert record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsEmpExpert record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsEmpExpert selectByPrimaryKey(Integer expertId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsEmpExpert record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsEmpExpert record);

    /**
     * 查询所有 带分页
     * @param atsEmpExpert
     * @return
     */
    List<AtsEmpExpert> selectAll(AtsEmpExpert atsEmpExpert);

    /**
     * 查询所有有效专家
     * @return
     */
    List<AtsEmpExpert> findAllFour();

    /**
     * 查询行数
     * @param atsEmpExpert
     * @return
     */
    int selectCount(AtsEmpExpert atsEmpExpert);

    /**
     * 查询所有 不带分页
     * @param atsEmpExpert
     * @return
     */
    List<AtsEmpExpert> findAll(AtsEmpExpert atsEmpExpert);
}